package com.xzy.shop.service.impl;


import com.xzy.shop.dao.CategoryDao;
import com.xzy.shop.dao.impl.CategoryDaoImpl;
import com.xzy.shop.domain.Category;
import com.xzy.shop.service.CategoryService;

import java.util.List;

public class CategoryServiceImpl implements CategoryService {
    CategoryDao dao = new CategoryDaoImpl();
    @Override
    public List<Category> findAll() {
        List<Category> list = dao.findAll();
        return list;
    }

    @Override
    public Category findCategory(String gid) {
        return dao.findCategory(gid);
    }

    @Override
    public String findNameByCid(String cid) {
        return dao.findNameByCid(cid);
    }
}
